package sort;

import java.util.Arrays;

/**
 * @ Project: JavaSort
 * @ Package: sort
 * @ Title 标题（要求能简洁地表达出类的功能和职责）
 * @ Description: 描述（简要描述类的职责、实现方式、使用注意事项等）
 * @ author : qw
 * @ CreateDate: 2021/7/5 18:46
 * @ Version: 1.0
 * @ Copyright: Copyright (c) 2021
 * @ History: 修订历史（历次修订内容、修订人、修订时间等）
 */
public class SortTemp {
    public static void main(String[] args) {

    }

    public static void print(Comparable[] arr) {
        Arrays.stream(arr).forEach(System.out :: println);
    }
    public static boolean less(Comparable c1,Comparable c2) {
        return c1.compareTo(c2) < 0;
    }
    public static void exch(Comparable[] a,int i,int j) {
        Comparable t = a[i];
        a[i] = a[j];
        a[j] = t;
    }
}
